package com.dcloud.streamweb.taskmanage.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import com.dcloud.streamweb.taskmanage.entity.JobConfig;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * @Description: job_config
 * @Author: jeecg-boot
 * @Date:   2024-06-26
 * @Version: V1.0
 */
public interface JobConfigMapper extends BaseMapper<JobConfig> {

    void insertWithId(JobConfig jobConfig);

    long selectCountByJobName(String jobName, Long id);

    JobConfig selectByPrimaryKey(Long id);

    int updateStatusByStart(@Param("id") Long id, @Param("status") Integer status,
                            @Param("userName") String userName,
                            @Param("jobRunLogId") Long jobRunLogId, @Param("oldVersion") Integer oldVersion);

}
